*::after, *::before {
  box-sizing: border-box;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.sec {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  scroll-snap-align: center;
}

h2 {
  color: #fff;
  font-size: 10vm;
  margin: 0 50px;
}

.sec:nth-child(1) {
  background: rgba(23, 143, 255, 0.685) url(./images/bg1.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: multiply;
}

.sec:nth-child(2) {
  background: rgba(54, 57, 255, 0.616) url(./images/bg2.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: multiply;
}

.sec:nth-child(3) {
  background: rgba(255, 248, 152, 0.616) url(./images/bg3.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: multiply;
}

.sec:nth-child(4) {
  background: rgba(255, 120, 96, 0.616) url(./images/bg4.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: multiply;
}

.sec:nth-child(5) {
  background: rgba(231, 118, 11, 0.616) url(./images/bg5.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: multiply;
}

.sec:nth-child(6) {
  background: rgba(0, 0, 0, 0.575) url(./images/bg6.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: multiply;
}

.sec:nth-child(7) {
  background: rgba(0, 0, 0, 0.575) url(./images/bg7.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: multiply;
}

.sec:nth-child(9) {
  background: rgba(0, 0, 0, 0.575) url(./images/bg8.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-blend-mode: multiply;
}

.content {
  position: absolute;
  top: 0;
  width: 100%;
  text-align: center;
}

.content h2 {
  position: relative;
  display: flex;
  justify-content: center;
}

.content h2 span{
  position: sticky;
  top: 0;
  line-height: 100vh;
  height: 100vh;
  color: #FFF;
  font-size: 14vw;
  margin-top: calc(100vh * var(--i));
}